<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1, user-scalable=no">
    <meta http-equiv="X-UA-Compatible" content="ie=edge,chrome=1">
    <meta name="author" content="姚德秋">
    <title></title>
    <style>
    .box{
        width: 400px;
        border: 1px solid #000;
        margin: 50px auto;

    }
    .tab{
        margin: 0;
        padding: 0;
        list-style: none;
        background-color: #000;
    }
    li{
        float: left;
        width: 60px;
        text-align: center;
        line-height: 26px;
        color: white;
    }
   .tab li .active{
        color: black;
        background-color: #333;
    }
    p{
        display: none;
    }
    p:first-child{
        display: block;
    }
    .clearfix::after{
        content: '';
        clear: both;
        display: block;
        height: 0;
        visibility: hidden;
    }


    </style>
</head>
<body>
        <div class="box clearfix">
            <ul class="tab">
                <li>新闻</li>
                <li>公共</li>
                <li>赛程</li>
            </ul>
        </div>
        <div class="content">
            <p>新闻<br>xdjkakfhsl <br>dasfasgsag</p>
            
            <p>新闻<br>xdjkakfhsl <br>dasfasgsag</p>
            <p>新闻<br>xdjkakfhsl <br>dasfasgsag</p>
        </div>
</body>
</html>
<script>
    


    
</script>